// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')

module.exports = {
  build: {
    index: path.resolve(__dirname, 'dist/coms-web/src/main/webapp/index.html'), //为了和svn同步路径加了webapp
    assetsRoot: path.resolve(__dirname, 'dist/coms-web/src/main/webapp/'),
    assetsSubDirectory: 'static',
    assetsPublicPath: process.env.NODE_ENV === 'production' ? '../' : '/',
    productionSourceMap: true
  },
  dev: {
    port: 8089,
    proxyTable: {
      '/proxyapi': {
        // target: 'http://115.236.19.147:15982/',
        // target: 'http://220.170.15.132:8082/', //湘潭中心医院的服务器IP
        // target: 'http://192.168.1.125: ', //省中医测试库ip
        target: 'http://test-wechat.jshtcm.com/mbtest', //省中医测试库域名
        changeOrigin: true,
        pathRewrite: {
          '^/proxyapi': ''
        }
      },
      '/pzx': {
        // target: 'http://192.168.1.107:8388', //随访测试库ip
        target: 'http://test-wechat.jshtcm.com/sf', //随访测试库域名
        changeOrigin: true,
        pathRewrite: {
          '^/pzx': ''
        }
      },
      '/sfproxy': {
        // target: 'http://192.168.1.107:8080/cas-app/', //测试库
        target: 'http://test-wechat.jshtcm.com/apptest/cas-app/', //测试库域名
        changeOrigin: true,
        pathRewrite: {
          '^/sfproxy': ''
        }
      }
    }
  }
}
